/*
 * @Author: your name
 * @Date: 2020-07-01 10:40:55
 * @LastEditTime: 2020-07-01 10:47:04
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \knowledge\js\jsonStringfy.js
 */ 
let _ =  require('lodash')

 let obj = {
     getDate:new Date()
 }
 let objnew = JSON.parse( JSON.stringify(obj))


 console.log(obj);
 console.log(objnew);
 console.log(obj === objnew)

 objnew = _.cloneDeep(obj);
 console.log(obj);
 console.log(objnew);
 console.log(obj === objnew)

 
